package com.dcy.znoa.dao.publiz;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.dcy.znoa.common.util.pojo.JsonForList;
import com.dcy.znoa.controller.publiz.model.message.SelectMessageModel;
import com.dcy.znoa.controller.publiz.model.message.SelectMsgGroupModel;
import com.dcy.znoa.domain.publiz.Message;
import com.dcy.znoa.domain.sys.MsgItemVo;

import java.util.List;

public interface MessageDao extends BaseMapper<Message>{

    List<Message> selectListMapper(SelectMessageModel model, Page page);

    MsgItemVo selectGroupItemByOperId(SelectMsgGroupModel model);

    List<Message> selectReadListByType(SelectMessageModel model, Page page);

    List<Message> selectUnReadListByType(SelectMessageModel model, Page page);

    List<Message> selectListByType(SelectMessageModel model, Page page);
}
